<?php
foreach($model as $m) : 
echo $m->type->name . " : " . $m->quantity . " ";
?>
<br />
<?php endforeach;?>